package com.amado.course0604switch;

import java.util.Scanner;

public class Swtich {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入一个整数：");
		int num = sc.nextInt();
		switch (num) {
		case 1:
			System.out.println("星期一");
			break;
		case 2:
			System.out.println("星期二");
			break;
		case 3:
			System.out.println("星期三");
			break;
		case 4:
			System.out.println("星期四");
			break;
		case 5:
			System.out.println("星期五");
			break;
		case 6:
			System.out.println("星期六");
			break;
		default://相当于else
			System.out.println("星期三");
		}
		
		
		
		if(num==1){
			
		}else if(num==2){
			
		}else if(num==3){
			
		}else{
			
		}
	}
}
